package com.easy.mapper;

import com.easy.bean.Bookshelf;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BookshelfDao {

    int add(@Param("param") Bookshelf bookshelf);

    int del(@Param("id") Integer id);

    int edit(@Param("param") Bookshelf bookshelf);

    Bookshelf one(@Param("id") Integer id);

    List<Bookshelf> all(@Param("param") Bookshelf bookshelf);

    int pageCount(@Param("param") Bookshelf bookshelf);

    List<Bookshelf> page(@Param("page") com.easy.util.Page page, @Param("param") Bookshelf bookshelf);
}
